package wicketforge.converter;

import java.awt.*;

import javax.swing.*;

import org.jdom.Element;
import org.jetbrains.annotations.NotNull;

import com.intellij.ui.ColoredListCellRenderer;

public interface PathConverter {

	static final String TYPE = "type";
	static final String NAME = "name";

	String getName();

	Icon getIcon();

	void writeToConfiguration(Element configuration);

	void readFromConfiguration(Element configuration);

	boolean openEditDialog(@NotNull final Component parent);

	void render(@NotNull ColoredListCellRenderer listCellRenderer);

	String convert(String valueToReplace);

	boolean isModified();

	void setModified(boolean modified);
}
